<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin</title>
        <link rel='stylesheet' href='../css/reset.css'/>
        <link rel='stylesheet' href='../css/960.css'/>
        <link rel='stylesheet' href='css/style.css'/>
        <script src="../Scripts/jquery-1.8.1.min.js" type="text/javascript"></script>
        <script src="../Scripts/DolphJS.js" type="text/javascript"></script>
        <!-- Load TinyMCE -->
        <script type="text/javascript" src="tiny_mce/jquery.tinymce.js"></script>
        <!-- /TinyMCE -->
    </head>
    <body>
        <?php
            include "processing/update_VarFormula.php";
        ?>
        <div id ="container" class="container_12">
            
            <div id="banner" class="grid_12">
                    <img src='../img/logo.png'>
            </div><!--end banner wrap-->
            
            <div id="body" class="grid_12">
                <div id="siteBar" class="grid_4">
                    <?php
                        include 'siteBar.php';
                    ?>
                </div><!--end siteBar wrap -->
                <div id="main" class="grid_7">
                    <div class="section">
                        <h2>Hiệu chỉnh Formula</h2>
                        <form method="post">
                            <ul>
                                <li class="listitem">
                                    <?php
                                        include "processing/load_VarFormula.php";
                                    ?>
                                    <div class="row">
                                        <label for="txtname">Transfer:</label>
                                        <input class="textbox" id="txttransfer" name="transfer" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $transfer; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Insurance:</label>
                                        <input class="textbox" id="txtinsurance" name="insurance" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $insurance; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Tax:</label>
                                        <input class="textbox" id="txttax" name="tax" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $tax; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Rate:</label>
                                        <input class="textbox" id="txtrate" name="rate" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $rate; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Machining:</label>
                                        <input class="textbox" id="txtmachining" name="machining" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $machining; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">Profit:</label>
                                        <input class="textbox" id="txtprofit" name="profit" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $profit; ?>" maxlength="255"/>
                                    </div>
                                    <div class="row">
                                        <label for="txtname">SellPlus:</label>
                                        <input class="textbox" id="txtsellplus" name="sellplus" type="text"  onkeypress="return onlyNumbers();" value="<?php echo $sellPlus; ?>" maxlength="255"/>
                                    </div>
                                    
                                </li>
                                
                                <li class="listitem">
                                    <div class="row rightalign">
                                        <input name="update" type="submit" value="Cập nhật"/>
                                        <div id ="res" style="float: right; color: greenyellow"><?php echo $resultUpdate; ?></div>
                                    </div>
                                    <div id="warning"></div>
                                </li>    
                            </ul>    
                        </form>
                    </div>
                </div><!--end main wrap -->
                
            </div><!--end main wrap-->
            
            <div id="footer" class="grid_12">
            </div><!--end footer wrap-->
        </div><!--end container wrap-->
    </body>
</html>